package com.example.human_resource_management.service;

import com.example.human_resource_management.common.ResponseData;
import com.example.human_resource_management.entry.dto.EmployeeForumAdminDto;
import com.example.human_resource_management.entry.po.EmployeeForum;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * @author Lenovo
 * @description 针对表【employee_forum(员工论坛表)】的数据库操作Service
 * @createDate 2025-06-09 14:53:50
 */
public interface EmployeeForumService extends IService<EmployeeForum> {




    List<EmployeeForum> selectEmployeeForumList();

    /*    EmployeeForum getEmployeeForumById(Long empId);*/
    List<EmployeeForum> getEmployeeForumsByEmpId(Long empId);

    ResponseData<String> createEmployeeForum(EmployeeForum employeeForum);

    ResponseData<String> deleteEmployeeForum(Long empId, Long postId);

    // 管理员端查询所有论坛帖子
    List<EmployeeForumAdminDto> selectAllEmployeeForums();

    // 管理员端新增论坛帖子
    ResponseData<String> adminCreateEmployeeForum(EmployeeForum employeeForum);

    // 管理员端更新论坛帖子
    ResponseData<String> adminUpdateEmployeeForum(EmployeeForum employeeForum);

    // 管理员端删除论坛帖子
    ResponseData<String> adminDeleteEmployeeForum(Long postId);
}